package com.itheima.aop;


import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @author xiaoChen
 * @description: AUTO GENERATION
 * @date 2022/5/17 16:17
 */

public class AfterInfo implements AfterReturningAdvice {

    // returnValue 方法的返回值
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("后置环绕，执行了"+method.getName()+",返回的结果为："+returnValue);
    }

}
